package com.cr.front.order.service;


import com.cr.front.order.pojo.TimeRange;
import com.cr.front.order.pojo.dto.*;
import com.cr.front.order.pojo.vo.OrderVO;

import java.util.List;

public interface OrderService {
    String saveOrder(OrderSaveParam orderSaveParam);

    List<OrderVO> listOrderByVehicleId(OrderQuery orderQuery);

    List<OrderVO> listOrderByUSerId(UserOrderQuery userOrderQuery);

    List<List<TimeRange>> listAvailableTime(OrderQuery orderQuery);

    OrderVO getPaymentOrderDetail(String orderId);

    void payOrder(String orderId, PayOrderParam PayOrderParam);

    void cancelOrder(String orderId, OrderCancelParam orderCancelParam);

    void completeOrder(String orderId);

    OrderVO getOrderDetail(String orderId);

    String validatePayment(String orderId);
}
